﻿using AutoMapper;
using T_vehicle.API.Application.Command.MaintenanceCommand;
using T_vehicle.Domain;

namespace T_vehicle.API.Extensions
{
    public class MaintenanceAuto:Profile
    {
        public MaintenanceAuto()
        {
            //添加保养记录
            CreateMap<AddMaintenanceCommand, Maintenance>().ReverseMap();
            //修改保养记录
            CreateMap<UpdateMaintenanceCommand, Maintenance>().ReverseMap();
        }
    }
}
